package com.qf.service.impl;

import com.qf.bean.Menu;
import com.qf.bean.Role;
import com.qf.dao.MenuDao;
import com.qf.dao.RoleDao;
import com.qf.service.ManyToManyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 2019/12/2
 * Administrator
 * springdata1130
 * 面向对象面向君  不负代码不负卿
 */
@Service("manyservice")
public class ManyToManyServiceImpl implements ManyToManyService {
    @Autowired
    private MenuDao menuDao;
    @Autowired
    private RoleDao roleDao;


    public List<Role> findroles() {
        return roleDao.findAll();
    }

    public List<Menu> findmenus() {
        return menuDao.findAll();
    }
}
